<?php 

include'../classes/db.php';
$email=$_GET['email'];

$time_now=mktime(date('H')+5,date('i')+30,date('s'),date('m'),date('d'),date('Y'));//get date and time
$year=date('Y',$time_now);//get current year

$x=new DbConnect();
$con=$x->getConnection();

$result= mysql_query("Select email from student where email='$email' and year(j_date)='$year'",$con);
$nof=mysql_num_rows($result);
  if($nof==0)
  {
   	echo"false";
  }
  else
  {
  echo"true";
   }
?>